import infoZH from './infoZH';
import infoEN from './infoEN';
import Emitter from './eventBus';
const infoSection = {
  template:`
    <div class="whois-info-section">
      <div class="container">
        <div class="whois-info-form">
          <div class="whois-info-form">
            <info-ZH :infoZH="info"></info-ZH>
            <info-EN :infoEN="info"></info-EN>
          </div>
        </div>
      </div>
    </div>
  `,
  components: {
    'info-ZH': infoZH,
    'info-EN': infoEN
  },
  data: function(){
    return {
      info: '',
    }
  },
  mounted() {
    Emitter.$on('getWhois', (whois)=>{
      this.info = whois;
    })
  }
}
module.exports = infoSection;